package day20171026;

import day20171019.*;

/**
 * Created by Administrator on 2017-10-26.
 */
public class Test01 {

    public static void main(String[] args) {


        // 1,2,3,4,5
        int[] numbers = new int[500];
        numbers[0] = 1;
        numbers[1] = 2;
        numbers[2] = 3;
        numbers[3] = 4;
        numbers[4] = 5;

//        System.out.println(numbers[0]);
//        System.out.println(numbers[1]);
//        System.out.println(numbers[2]);
//        System.out.println(numbers[3]);
//        System.out.println(numbers[4]);
        // 下标： 0 - 4
        int index;

        for(index = 0; index < numbers.length; index++){

            System.out.println(numbers[index]);
        }


//
//        int a ;
//        a = 10;


        // 98.5, 99.8, 99.9
        double[] scores = new double[3];
        scores[0] = 98.5;
        scores[1] = 99.8;
        scores[2] = 99.9;


        // 五个学生
        Student[] students = new Student[41];
        students[0].name = "chengongsuo";
        students[0].age = 12;

        int i;

        for (i = 0; i < 41;i ++){

            System.out.println(students[i].name);
        }

        // 有三个手机
        Phone[] phones = new Phone[3];
        phones[0].brand = "huawei";
        phones[0].price = "3999.99";





    }
}
